// const process = require('./process.js')

// module.exports = (req,res) => {
//     let url = req.url;
//     let method = req.method;
//     if(method == 'GET' && url == '/') { //获取主页静态页面
//         process.getIndex(req,res)
//     }else if(url.includes('pages')) {   //获取页面链接内容
//         process.getfj(req,res)
//     }else if(method == 'POST' || url == '/sr') {    //处理表单数据
//        process.dealForm(req,res);
//     }
// }

const express = require('express');
const template = require('art-template')
// const expressTMP = require('express-art-template');
const path = require('path')
let router = express.Router();


router.get('/',(req,res) =>{
    res.render('index',{})
})
router.get('/abc',(req,res) =>{
    res.send('get请求abc')
})
router.post('/aaa',(req,res) =>{
    res.send('post请求aaa')
})

module.exports = router